﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MsgCenter.BLL.Impl;

namespace MsgCenter.BLL
{
    public class BLLServiceHelper
    {
        private static BLL_BaseService serviceBaseData = null;
        #region BaseDataService
        /// <summary>
        /// 翻页接口
        /// </summary>
        /// <returns></returns>
        public static BLL_BaseService GetBaseDataService()
        {
            if (serviceBaseData == null)
                serviceBaseData = new BLL_BaseService();
            return serviceBaseData;
        }
        #endregion

        private static BLL_SysDept serviceDept = null;
        #region BLL_SysDept
        /// <summary>
        /// 部门接口
        /// </summary>
        /// <returns></returns>
        public static BLL_SysDept GetDeptService()
        {
            if (serviceDept == null)
                serviceDept = new BLL_SysDept();
            return serviceDept;
        }
        #endregion

        private static BLL_SysOperate serviceOperate = null;
        #region BLL_SysOperate
        /// <summary>
        /// 功能接口
        /// </summary>
        /// <returns></returns>
        public static BLL_SysOperate GetOperateService()
        {
            if (serviceOperate == null)
                serviceOperate = new BLL_SysOperate();
            return serviceOperate;
        }
        #endregion

        private static BLL_SysModule serviceModule = null;
        #region BLL_SysModule
        /// <summary>
        /// 模块接口
        /// </summary>
        /// <returns></returns>
        public static BLL_SysModule GetModuleService()
        {
            if (serviceModule == null)
                serviceModule = new BLL_SysModule();
            return serviceModule;
        }
        #endregion

        private static BLL_SysRole serviceRole = null;
        #region BLL_SysRole
        /// <summary>
        /// 角色接口
        /// </summary>
        /// <returns></returns>
        public static BLL_SysRole GetRoleService()
        {
            if (serviceRole == null)
                serviceRole = new BLL_SysRole();
            return serviceRole;
        }
        #endregion

        private static BLL_SysUser serviceUser = null;
        #region BLL_SysUser
        /// <summary>
        /// 用户接口
        /// </summary>
        /// <returns></returns>
        public static BLL_SysUser GetUserService()
        {
            if (serviceUser == null)
                serviceUser = new BLL_SysUser();
            return serviceUser;
        }
        #endregion

        private static BLL_SysDic serviceDic = null;
        #region BLL_SysDic
        /// <summary>
        /// 字典接口
        /// </summary>
        /// <returns></returns>
        public static BLL_SysDic GetDicService()
        {
            if (serviceDic == null)
                serviceDic = new BLL_SysDic();
            return serviceDic;
        }
        #endregion

        private static BLL_SysReg serviceReg = null;
        #region BLL_SysReg
        /// <summary>
        /// 应用程序注册
        /// </summary>
        /// <returns></returns>
        public static BLL_SysReg GetRegService()
        {
            if (serviceReg == null)
                serviceReg = new BLL_SysReg();
            return serviceReg;
        }
        #endregion

        private static BLL_SysGroup serviceGroup = null;
        #region BLL_SysGroup
        /// <summary>
        /// 分组
        /// </summary>
        /// <returns></returns>
        public static BLL_SysGroup GetGroupService()
        {
            if (serviceGroup == null)
                serviceGroup = new BLL_SysGroup();
            return serviceGroup;
        }
        #endregion

        private static BLL_Write serviceWrite = null;
        #region BLL_Write
        /// <summary>
        /// 写短信
        /// </summary>
        /// <returns></returns>
        public static BLL_Write GetWriteService()
        {
            if (serviceWrite == null)
                serviceWrite = new BLL_Write();
            return serviceWrite;
        }
        #endregion


        
    }
}
